//
//  UIView+HUD.h
//  WXReader
//
//  Created by LL on 2021/9/27.
//  Copyright © 2021 Andrew. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "MBProgressHUD.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIView (HUD)

/// 弹出一个背景半透明带文字的菊花HUD，当title为nil不显示文字
- (MBProgressHUD *)showDarkHUDFromText:(nullable NSString *)title;

/// 立即弹出一个背景半透明带文字的菊花HUD，当title为nil不显示文字
- (MBProgressHUD *)promptShowDarkHUDFromText:(nullable NSString *)title;
- (nullable MBProgressHUD *)showTextHUD:(NSString *)text afterDelay:(NSTimeInterval)afterDelay;
@end

NS_ASSUME_NONNULL_END
